//
//  LCRollView.h
//  Test
//
//  Created by mac on 2019/11/23.
//  Copyright © 2019 SZJ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LCRollViewItem.h"

#import "LCRollModel.h"



NS_ASSUME_NONNULL_BEGIN

@class LCRollView;

@protocol LCRollViewDelegate <NSObject>

- (NSInteger)rollView:(LCRollView *)rollView didSelectItemAtPosition:(LCRollPosition *)position;




- (__kindof LCRollViewItem *)rollView:(LCRollView *)rollView itemForItemAtPosition:(LCRollPosition *)position;


- (NSInteger)numberOfSectionsInRollView;

- (NSInteger)rollView:(LCRollView *)rollView numberOfItemsInSection:(NSInteger)section;

- (LCRollDirection)rollView:(LCRollView *)rollView deirectionOfSection:(NSInteger)section;

- (CGSize)rollView:(LCRollView *)rollView sizeOfItemAtPosition:(LCRollPosition *)position;


@end


@interface LCRollView : UIView

@property (nonatomic,weak) id <LCRollViewDelegate> delegate;
@property (nonatomic,assign) LCRollDirection rollDirection;

- (void)registerItemClass:(Class)itemClass withItemID:(NSString *)itemID;

- (void)reloadData;

@end

NS_ASSUME_NONNULL_END
